﻿using MKAdminCore.DTO.CusAttribute;
using MKAdminCore.DTO.Web.Common;
using System;
using System.Collections.Generic;
using System.Text;
using System.Text.Json.Serialization;

namespace MKAdminCore.DTO.Web.BasicSetting
{
    public class GetRoleInfoListParameter : PagingParameter
    {
        /// <summary>
        /// 用户名称
        /// </summary>
        public string RoleName { get; set; }
    }

    public class OperatorRoleInfo
    {
        public int RoleId { get; set; }
        public string RoleName { get; set; }
        public string RoleDesc { get; set; }
        public int StatusCode { get; set; }
        public string CreateTime { get; set; }
        /// <summary>
        /// 权限Id集合
        /// </summary>
        [JsonIgnore]
        public List<int> RightIds { get; set; }
    }

    public class OperatorRoleInfoAddParam
    {
        [CusRequired(ErrorMsg = "请输入角色名称")]
        public string RoleName { get; set; }
        /// <summary>
        /// 权限Id集合
        /// </summary>
        public List<int> RightIds { get; set; }
    }

    public class OperatorRoleInfoEditParam
    {
        [CusRequired(ErrorMsg = "请先选中角色")]
        public int RoleId { get; set; }
        [CusRequired(ErrorMsg = "请输入角色名称")]
        public string RoleName { get; set; }
        /// <summary>
        /// 权限Id集合
        /// </summary>
        [JsonIgnore]
        public List<int> RightIds { get; set; }
    }

    public class OperatorRoleInfoDelParam
    {
        [CusRequired(ErrorMsg = "请先选中角色")]
        public int RoleId { get; set; }
    }

    public class OperatorRoleInfoGetRight
    {
        [CusRequired(ErrorMsg = "请先选中角色")]
        public int RoleId { get; set; }
    }

    public class OperatorAllotRoleInfo
    {
        public int RoleId { get; set; }
        public string RoleName { get; set; }
        public int Checked { get; set; }
    }

    public class OperatorRoleRightConfig
    {
        public int RoleId { get; set; }
        public int RightId { get; set; }
    }


}
